// 测试域名
// const testDomin = '//172.20.1.187:5001'
const testDomin = 'https://www.apiopen.top'

// 正式域名
// const formalDomain = '//172.20.1.210:5001'
const formalDomain = 'https://www.apiopen.top'

// 环境变量
const env = process.env.NODE_ENV
const origin = env === 'development' ? testDomin : formalDomain

// config
const config = {
  // 版本号
  version: '0.1.1',

  // 域名
  ajaxUrl: origin,

  // 是否启用 RSA
  enabledRSA: false,

  // RSA 公钥
  publicKey: 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgBhFOBH006aKdginrydYT9WBPsJLbmidhQNp70y+cGs5aeTfg+S8bPAT7JDwpRjSm7ieuhuBrc1JnjOL+ZViNOXzNlH40bYJGTn47hdqnom2gX8pdlw9iFTVGdprTiRtm4myZ/rc0mnyECvfbyeMyOUipPCqShxi7OFhzS5MRWxIQ24RT+KK2itX7eiVnlPRyav8qn9s3fftYdIGtwpRooGsIcRWr42JBCQpbfk3/qkQUm67qR0UvwkZ9694l8cOpxh6ey09rMLKfv61k5P5manWRhwPxcGuYIR9U0gxeVpjeKq/xJSl+vX+yBq/wd2y4GMC1FaJW5857ZxVwhsZDQIDAQAB',
}

/**
 * 假日表
 * @param [month, day, type, name] type : 1 公历 2 农历
 */

const legalHoliday = [
  ['01', '01', 1, '元旦'],
  ['01', '01', 2, '春节'],
  ['04', '05', 1, '清明节'],
  ['05', '01', 1, '劳动节'],
  ['05', '05', 2, '端午节'],
  ['08', '15', 2, '中秋节'],
  ['10', '01', 1, '国庆节']
]

export {
  config,
  legalHoliday
}
